/**
 * 
 */
package org.cuatrovientos.javakart;

/**
 * class Car
 * 
 * @author daniel_ancin
 *
 */
public class Car extends Vehicle {
	private String matricula;

	/**
	 * Constructor
	 * @param name
	 * @param matricula
	 */
	 
	  public Car(String name, String matricula) {
	 
		super(name);
		this.matricula = matricula;
	}	
	  /**
	   * 
	   * @return the matricula
	   */
	public String getMatricula() {
		return matricula;
	}
	/**
	 * 
	 * @param matricula the matricula to set
	 */
	public void setMatricula(String matricula) {
		this.matricula = matricula;
	}

	/**
	 *
     * @see java.lang.Object#toString()
     */
 
	@Override
	public String toString() {
		return "Car [matricula=" + matricula + ", name=" + name + ", speed="
				+ speed + ", acceleration=" + acceleration + ", grip=" + grip
				+ "]";
	}

}

	

